﻿<%@ Page Title="Bilgiler | TodayWho" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="stats.aspx.cs" Inherits="TodayWho.stats" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="Javascript" type="text/javascript" src="/FusionCharts/FusionCharts.js"></script>
    <script type="text/javascript"> 
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, args) { 
     EnableDisableChatText();
        if (args.get_error() && args.get_error().name === 'Sys.WebForms.PageRequestManagerTimeoutException') 
        { 
            // remember to set errorHandled = true to keep from getting a popup from the AJAX library itself 
            args.set_errorHandled(true); 
        } 
        
        else if (args.get_error() && args.get_error().name === 'Sys.WebForms.PageRequestManagerServerErrorException') 
        { 
            // remember to set errorHandled = true to keep from getting a popup from the AJAX library itself 
            args.set_errorHandled(true); 
        } 
        
        else if (args.get_error() && args.get_error().name === 'Sys.WebForms.PageRequestManagerParserErrorException') 
        { 
            // remember to set errorHandled = true to keep from getting a popup from the AJAX library itself 
            args.set_errorHandled(true); 
        } 
        
        
    }); 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
        <asp:ScriptManager ID="scriptmanager" runat="server" EnablePartialRendering="true" ></asp:ScriptManager>
        
        <div id="stylized" class="myform" style="text-align:center">
                    
            <asp:UpdatePanel ID="updatePanelPageview" runat="server" UpdateMode="Conditional" >
                <ContentTemplate>
                    <h1>Sayfa Gosterimi</h1>
                    <p>Sayfa gosterim performansini zaman dilimlerine gore filtreleyerek gorebilirsiniz.</p>
                    <div style="margin-bottom:30px;height:70px">
                        <label>Filtre
                        <span class="small">Zaman Aralığını Seçiniz</span>
                        </label>
                        <asp:DropDownList ID="ddlPageview" runat="server" CssClass="select"
                            AutoPostBack="true" OnSelectedIndexChanged="ddlPageview_OnSelectedIndexChanged" >
                            <asp:ListItem Text="Bugün" Value="1" ></asp:ListItem>
                            <asp:ListItem Text="Geçen Hafta" Value="2" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="Geçen Ay" Value="3"></asp:ListItem>
                            <asp:ListItem Text="Toplam" Value="4"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <div>
                        <div class="statsCount">
                            <asp:Label ID="pageviewTotalCount" runat="server" Text=""></asp:Label>
                            <br />
                            <span style="font-size:16px">kere</span>
                        </div>
                        <div>
                            <asp:Literal ID="chartPageView" runat="server"></asp:Literal>
                        </div>
                    </div>
                
             </ContentTemplate>
        </asp:UpdatePanel>
        <hr />
        <asp:UpdatePanel ID="updatePanelLinkview" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <h1>Link Tiklama Gosterimi</h1>
                    <p>Link tiklama performansini zaman dilimlerine gore filtreleyerek gorebilirsiniz.</p>
                    <div style="margin-bottom:30px;height:70px">
                        <label>Filtre
                        <span class="small">Zaman Aralığını Seçiniz</span>
                        </label>
                        <asp:DropDownList ID="ddlLinkview" runat="server" CssClass="select"
                            AutoPostBack="true" OnSelectedIndexChanged="ddlLinkview_OnSelectedIndexChanged" >
                            <asp:ListItem Text="Bugün" Value="1" ></asp:ListItem>
                            <asp:ListItem Text="Geçen Hafta" Value="2" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="Geçen Ay" Value="3"></asp:ListItem>
                            <asp:ListItem Text="Toplam" Value="4"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <div>
                        <div class="statsCount">
                            <asp:Label ID="linkviewTotal" runat="server" Text=""></asp:Label>
                            <br />
                            <span style="font-size:16px">kere</span>
                        </div>
                        <div>
                            <asp:Literal ID="chartLinkview" runat="server"></asp:Literal>
                        </div>
                    </div>
                
            </ContentTemplate>
        </asp:UpdatePanel>
        <hr />
        <asp:UpdatePanel ID="updatePanelServiceDetails" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                
                <h1>Servislere tıklanma detayli istatistiği (Geçen ay)</h1>
                    <p>Istediginiz servisi secerek gun gun detayli tiklanma grafigini gorebilirsiniz.</p>
                    <div style="margin-bottom:30px;height:70px">
                        <label>Filtre
                        <span class="small">Servis seçiniz</span>
                        </label>
                        <asp:RadioButtonList ID="ddlServiceDetails" runat="server" AutoPostBack="true" Width="100%"
                                OnSelectedIndexChanged="ddlServiceDetails_OnSelectedIndexChanged" RepeatDirection="Horizontal"
                                DataTextField="serviceName" DataValueField="serviceId">
                        </asp:RadioButtonList>
                        <asp:Label ID="lblNoService" runat="server" Visible="false" style="font-size:18px;color:#666666">Su ana kadar tiklanmis hicbir servis bulunamadi..</asp:Label>
                    </div>
                    <div>
                        <div class="statsCount">
                            <asp:Label ID="serviceDetailsTotal" runat="server" Text=""></asp:Label>
                            <br />
                            <span style="font-size:16px">kere</span>
                        </div>
                        <div>
                            <asp:Literal ID="chartServiceDetails" runat="server"></asp:Literal>
                        </div>
                    </div>
                
            </ContentTemplate>
        </asp:UpdatePanel>
        
    </div>
</asp:Content>
